package cn.sc.allinpay.allfavour.business.common.data;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * description：pos机返回类型
 * author：pany
 * on 2018/8/20 10:01
 */
public class PosData implements Parcelable {

    private String terminalId;//终端号
    private String merchantId;//商户id
    private String merchantName;//商户名称






    private String transType;//交易类型
    private String amount;//金额
    private String cashAmt;//现金金额
    private String traceNo;//凭证号
    private String batchNo;//批次号
    private String referenceNo;//参考号
    private String dateTime;//交易时间 格式yyyyMMddHHmmss
    private String cardNo;//卡号
    private String issue;//发卡行
    private String transactionNumber;//交易单号
//    private String orderpayway;//订单支付方式    银行卡-01|微信-02|支付宝-03
    public String orderId;//订单号,营销前置订单

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public PosData() {

    }

    protected PosData(Parcel in) {
        terminalId = in.readString();
        merchantId = in.readString();
        merchantName = in.readString();
        transType = in.readString();
        amount = in.readString();
        cashAmt = in.readString();
        traceNo = in.readString();
        batchNo = in.readString();
        referenceNo = in.readString();
        dateTime = in.readString();
        cardNo = in.readString();
        issue = in.readString();
        transactionNumber = in.readString();
//        orderpayway = in.readString();
        orderId = in.readString();

    }

    public String getTerminalId() {
        return terminalId;
    }

    public void setTerminalId(String terminalId) {
        this.terminalId = terminalId;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public String getTransType() {
        return transType;
    }

    public void setTransType(String transType) {
        this.transType = transType;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public String getCashAmt() {
        return cashAmt;
    }

    public void setCashAmt(String cashAmt) {
        this.cashAmt = cashAmt;
    }

    public String getTraceNo() {
        return traceNo;
    }

    public void setTraceNo(String traceNo) {
        this.traceNo = traceNo;
    }

    public String getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(String batchNo) {
        this.batchNo = batchNo;
    }

    public String getReferenceNo() {
        return referenceNo;
    }

    public void setReferenceNo(String referenceNo) {
        this.referenceNo = referenceNo;
    }

    public String getDateTime() {
        return dateTime;
    }

    public void setDateTime(String dateTime) {
        this.dateTime = dateTime;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getIssue() {
        return issue;
    }

    public void setIssue(String issue) {
        this.issue = issue;
    }

    public String getTransactionNumber() {
        return transactionNumber;
    }

    public void setTransactionNumber(String transactionNumber) {
        this.transactionNumber = transactionNumber;
    }

    public static final Creator<PosData> CREATOR = new Creator<PosData>() {
        @Override
        public PosData createFromParcel(Parcel in) {
            return new PosData(in);
        }

        @Override
        public PosData[] newArray(int size) {
            return new PosData[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(terminalId);
        parcel.writeString(merchantId);
        parcel.writeString(merchantName);
        parcel.writeString(transType);
        parcel.writeString(amount);
        parcel.writeString(cashAmt);
        parcel.writeString(traceNo);
        parcel.writeString(batchNo);
        parcel.writeString(referenceNo);
        parcel.writeString(dateTime);
        parcel.writeString(cardNo);
        parcel.writeString(issue);
        parcel.writeString(transactionNumber);
//        parcel.writeString(orderpayway);
        parcel.writeString(orderId);

    }
}
